<div class="widget am-cf">
	<div class="am-fl"><a href="javascript:void(0)" class="am-btn am-btn-primary am-btn-xs" onclick="history.go(-1);return false;"><i class="am-icon-long-arrow-left"></i> 采购订单</a></div>
    <div class="am-fr"><a href="javascript:void(0)" class="am-btn am-btn-default am-btn-xs" id="cennelBtn">取消采购</a></div>
</div>
<style>.am-table-tit>tbody>tr>td{ border-top:0;}</style>
<div style="background-color:#f2f8fa; padding:20px 20px 1px 20px; margin-bottom:15px;">
    <table class="am-table am-table-tit">
    	<td>{{.m.Suppliers.Name}} <a href="javascript:;" id="insert-entry">【重选】</a></td>
        <td>开票日期：{{.m.CreatedAt | getDate}}</td>
        <td>送货方式：{{index .deliverymode .m.DeliveryMode}}</td>
        <td>付款方式：{{index .paymethod .m.PayMethod}}</td>
        <td>制单人：{{.m.CreatedBy}}</td>
        <td>邮费：{{.m.Postage}}</td>
    </table>
</div>

<form class="am-form-inline tpl-form-border-form" role="form" style="padding-top:0; margin-bottom:20px;" id="queryForm">
<div class="am-input-group am-input-group-sm tpl-form-border-form cl-p"  style="width:580px;">
    <input type="text" class="am-form-field" id="search_key" placeholder="输入产品名称/编码查询" style="background-color:#FFF; ">
    <span class="am-input-group-btn">
        <button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search" type="button" id="searchsubmit"></button>
    </span>
</div>
</form>
<div class="row">
        <div class="am-u-sm-8">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title">
                        {{range $k,$v:=.erptypeid}}
                            <a href="javascript:;" class="am-btn am-btn-default am-btn-xs erptypeid" data-id="{{$k}}">{{$v}}</a>
                        {{end}}
                    </div>
                </div>
                <div class="widget-body  am-fr">
                    
                        <table width="100%" class="am-table tpl-table-black am-table-hover am-table-bordered" id="dataTables">
                            <thead>
                            <tr>
                                <th width="10%">ID</th>
                                <th>品名</th>
                                <th width="10%">操作</th>
                            </tr>
                            </thead>
                            <tbody></tbody>
                        </table>
                    
                </div>
            </div>
        </div>
        <style>
        	.goods-list{ padding-bottom:10px;}
			.goods-list .list{ border-bottom:1px dashed #5dc0fb; padding-top:6px; padding-bottom:6px; }
			.goods-list .list p{ margin-bottom:5px; margin-top:0;}
			.goods-list .list a{ margin-left:6px;}
        </style>
        <div class="am-u-sm-4">
        	<div class="widget am-cf" style="border: 1px dashed #5dc0fb;">
            	<div class="goods-list" id="goods-list"></div>
                <button type="button" class="am-btn am-btn-warning am-btn-block" id="submitOrder">提交订单</button>
            </div>
        </div>
</div>

